package yunplus.io.hchome.application;

import android.app.Application;
import android.content.Context;
import im.fir.sdk.FIR;


public class MyApplication extends Application {

    private static Context _context;

    public static Context getContext() {
        return _context;
    }

    @Override
    public void onCreate() {

        super.onCreate();

        _context = this;

        FIR.init(this);

        // 配置全局异常捕获
//        if (!BuildConfig.DEBUG) {
            Thread.setDefaultUncaughtExceptionHandler(new AppExceptionHandler(this));
//        }

    }

}
